It uses a classic algorithm found in every compiler book . if you are unfamiliar with the topic , i recommend compiler construction 它使用一种典型的算法,这种算法可以在每本编译器书籍中找到。
Compiler construction is an area of computer science that deals with the theory and practice of developing programming languages and their associated compilers.